#ifndef UIWIN_CORE_RENDER_H_
#define UIWIN_CORE_RENDER_H_

namespace uiwin
{
	class DLL_API Clip
	{
	public:
		~Clip();

		RECT rcItem;
		HDC  hDC;
		HRGN hRgn;
		HRGN hOldRgn;

		static void GenerateClip(HDC hdc, RECT rc, Clip& clip);
		static void GenerateRoundClip(HDC hdc, RECT rc, RECT rcitem, 
			int width, int height, Clip& clip);

		void UseOldClipBegin();
		void UseOldClipEnd();
	};
}

#endif	// UIWIN_CORE_RENDER_H_